var runtime.debug
172 uses
runtime (current package)
arena.go#L818: if debug.malloc {
cgocall.go#L451: if debug.dataindependenttiming == 1 && gp.m.isextra {
cgocall.go#L455: } else if sys.DITSupported && debug.dataindependenttiming != 1 {
cgocall.go#L480: if debug.dataindependenttiming == 1 && !ditStateM {
cgocall.go#L483: } else if sys.DITSupported && debug.dataindependenttiming != 1 {
cgocall.go#L573: if !goexperiment.CgoCheck2 && debug.cgocheck == 0 {
cgocall.go#L828: if !goexperiment.CgoCheck2 && debug.cgocheck == 0 {
cgroup_linux.go#L52: if debug.containermaxprocs > 0 {
malloc.go#L1099: if debug.malloc {
malloc.go#L1202: if debug.malloc {
malloc.go#L1796: if debug.sbrk != 0 {
malloc.go#L1844: if debug.checkfinalizers != 0 && elemsize == 0 {
malloc.go#L1968: if debug.clobberfree != 0 {
malloc_generated.go#L24: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L177: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L330: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L483: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L636: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L789: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L942: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1095: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1202: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1301: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1400: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1499: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1598: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1697: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_generated.go#L1801: if debug.malloc {
malloc_generated.go#L1855: if debug.malloc {
malloc_generated.go#L1923: if debug.malloc {
malloc_generated.go#L1942: if debug.malloc {
malloc_generated.go#L2100: if debug.malloc {
malloc_generated.go#L2119: if debug.malloc {
malloc_generated.go#L2227: if debug.malloc {
malloc_stubs.go#L82: forceSlowPath := debug.malloc || gcBlackenEnabled != 0 || (goexperiment.RuntimeSecret && getg().secret > 0)
malloc_stubs.go#L120: if debug.malloc {
malloc_stubs.go#L158: if isSlowPath_ && debug.malloc {
mbitmap.go#L1368: if (GOARCH == "amd64" || GOARCH == "arm64") && p == clobberdeadPtr && debug.invalidptr != 0 {
mbitmap.go#L1387: if debug.invalidptr != 0 {
mcheckmark.go#L180: if debug.checkfinalizers > 1 {
mcheckmark.go#L191: if debug.checkfinalizers > 1 {
mcleanup.go#L104: if debug.sbrk != 0 {
mcleanup.go#L187: if debug.checkfinalizers != 0 {
mcleanup.go#L278: if debug.checkfinalizers != 0 {
mem_linux.go#L51: if debug.madvdontneed != 0 && advise != madviseUnsupported {
mem_linux.go#L80: if debug.harddecommit > 0 {
mem_linux.go#L90: if debug.harddecommit > 0 {
mem_linux.go#L187: if debug.disablethp != 0 {
mem_linux.go#L193: return debug.madvdontneed == 0
mfinal.go#L449: if debug.sbrk != 0 {
mfinal.go#L485: if debug.checkfinalizers != 0 {
mfinal.go#L541: if debug.checkfinalizers != 0 {
mgc.go#L784: if debug.gcstoptheworld == 1 {
mgc.go#L786: } else if debug.gcstoptheworld == 2 {
mgc.go#L1395: if debug.gccheckmark > 0 {
mgc.go#L1398: if debug.checkfinalizers > 0 {
mgc.go#L1558: if debug.gctrace > 1 {
mgc.go#L1570: if debug.gctrace > 1 {
mgc.go#L1588: if debug.gctrace > 0 {
mgc.go#L1635: if debug.gctrace > 1 {
mgc.go#L1644: if debug.checkfinalizers > 0 {
mgc.go#L1984: if debug.gccheckmark > 0 {
mgc.go#L2007: if debug.gccheckmark > 0 {
mgcmark.go#L1665: if debug.checkfinalizers > 1 {
mgcmark.go#L1669: if debug.gccheckmark > 0 && span.isFree(objIndex) {
mgcmark_greenteagc.go#L865: if debug.gctrace > 1 {
mgcmark_greenteagc.go#L893: if debug.gctrace > 1 {
mgcmark_greenteagc.go#L915: if debug.gctrace > 1 {
mgcmark_greenteagc.go#L1277: if debug.gctrace > 1 {
mgcpacer.go#L422: if debug.gcstoptheworld > 0 {
mgcpacer.go#L458: if debug.gcpacertrace > 0 {
mgcpacer.go#L674: if debug.gcpacertrace > 0 {
mgcsweep.go#L176: if debug.gcpacertrace > 0 {
mgcsweep.go#L428: if debug.scavtrace > 0 {
mgcsweep.go#L618: if traceAllocFreeEnabled() || debug.clobberfree != 0 || raceenabled || msanenabled || asanenabled {
mgcsweep.go#L632: if debug.clobberfree != 0 {
mgcsweep.go#L830: if debug.efence > 0 {
mheap.go#L1798: if debug.scavtrace > 0 {
mheap.go#L2508: if debug.sbrk != 0 {
mprof.go#L443: nstk := callers(3, mp.profStack[:debug.profstackdepth+2])
mprof.go#L528: if debug.profstackdepth == 0 {
mprof.go#L707: if debug.profstackdepth == 0 {
mprof.go#L761: nstk := int(debug.profstackdepth)
panic.go#L811: if debug.panicnil.Load() != 1 {
panic.go#L1549: if debug.schedtrace > 0 || debug.scheddetail > 0 {
preempt.go#L224: if preemptMSupported && debug.asyncpreemptoff == 0 && needAsync {
proc.go#L202: if debug.inittrace != 0 {
proc.go#L389: if debug.gctrace > 0 {
proc.go#L1057: if debug.profstackdepth == 0 {
proc.go#L1076: return make([]uintptr, 1+maxSkip+debug.profstackdepth)
proc.go#L1081: func makeProfStack() []uintptr { return make([]uintptr, debug.profstackdepth) }
proc.go#L1168: if debug.dontfreezetheworld > 0 {
proc.go#L1943: if debug.dataindependenttiming == 1 {
proc.go#L3368: if sys.DITSupported && debug.dataindependenttiming != 1 {
proc.go#L4198: if debug.dontfreezetheworld > 0 && freezing.Load() {
proc.go#L5485: if debug.tracebackancestors <= 0 || callergp.goid == 0 {
proc.go#L5493: if n > debug.tracebackancestors {
proc.go#L5494: n = debug.tracebackancestors
proc.go#L6575: if debug.schedtrace <= 0 && (sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs) {
proc.go#L6638: if debug.updatemaxprocs != 0 && lastgomaxprocs+1e9 <= now {
proc.go#L6662: if debug.schedtrace > 0 && lasttrace+int64(debug.schedtrace)*1000000 <= now {
proc.go#L6664: schedtrace(debug.scheddetail > 0)
proc.go#L6940: if preemptMSupported && debug.asyncpreemptoff == 0 {
proc.go#L7118: if debug.updatemaxprocs == 0 {
runtime1.go#L304: var debug struct {
runtime1.go#L358: {name: "adaptivestackstart", value: &debug.adaptivestackstart},
runtime1.go#L359: {name: "asyncpreemptoff", value: &debug.asyncpreemptoff},
runtime1.go#L360: {name: "cgocheck", value: &debug.cgocheck},
runtime1.go#L361: {name: "clobberfree", value: &debug.clobberfree},
runtime1.go#L362: {name: "containermaxprocs", value: &debug.containermaxprocs, def: 1},
runtime1.go#L363: {name: "dataindependenttiming", value: &debug.dataindependenttiming},
runtime1.go#L364: {name: "decoratemappings", value: &debug.decoratemappings, def: 1},
runtime1.go#L365: {name: "disablethp", value: &debug.disablethp},
runtime1.go#L366: {name: "dontfreezetheworld", value: &debug.dontfreezetheworld},
runtime1.go#L367: {name: "checkfinalizers", value: &debug.checkfinalizers},
runtime1.go#L368: {name: "efence", value: &debug.efence},
runtime1.go#L369: {name: "gccheckmark", value: &debug.gccheckmark},
runtime1.go#L370: {name: "gcpacertrace", value: &debug.gcpacertrace},
runtime1.go#L371: {name: "gcshrinkstackoff", value: &debug.gcshrinkstackoff},
runtime1.go#L372: {name: "gcstoptheworld", value: &debug.gcstoptheworld},
runtime1.go#L373: {name: "gctrace", value: &debug.gctrace},
runtime1.go#L374: {name: "harddecommit", value: &debug.harddecommit},
runtime1.go#L375: {name: "inittrace", value: &debug.inittrace},
runtime1.go#L376: {name: "invalidptr", value: &debug.invalidptr},
runtime1.go#L377: {name: "madvdontneed", value: &debug.madvdontneed},
runtime1.go#L378: {name: "panicnil", atomic: &debug.panicnil},
runtime1.go#L379: {name: "profstackdepth", value: &debug.profstackdepth, def: 128},
runtime1.go#L380: {name: "sbrk", value: &debug.sbrk},
runtime1.go#L381: {name: "scavtrace", value: &debug.scavtrace},
runtime1.go#L382: {name: "scheddetail", value: &debug.scheddetail},
runtime1.go#L383: {name: "schedtrace", value: &debug.schedtrace},
runtime1.go#L384: {name: "traceadvanceperiod", value: &debug.traceadvanceperiod},
runtime1.go#L385: {name: "traceallocfree", atomic: &debug.traceallocfree},
runtime1.go#L386: {name: "tracecheckstackownership", value: &debug.traceCheckStackOwnership},
runtime1.go#L387: {name: "tracebackancestors", value: &debug.tracebackancestors},
runtime1.go#L388: {name: "tracebacklabels", atomic: &debug.tracebacklabels, def: 1},
runtime1.go#L389: {name: "tracefpunwindoff", value: &debug.tracefpunwindoff},
runtime1.go#L390: {name: "updatemaxprocs", value: &debug.updatemaxprocs, def: 1},
runtime1.go#L395: debug.cgocheck = 1
runtime1.go#L396: debug.invalidptr = 1
runtime1.go#L397: debug.adaptivestackstart = 1 // set this to 0 to turn larger initial goroutine stacks off
runtime1.go#L407: debug.madvdontneed = 1
runtime1.go#L409: debug.traceadvanceperiod = defaultTraceAdvancePeriod
runtime1.go#L428: debug.malloc = (debug.inittrace | debug.sbrk | debug.checkfinalizers) != 0
runtime1.go#L429: debug.profstackdepth = min(debug.profstackdepth, maxProfStackDepth)
runtime1.go#L444: if debug.gccheckmark > 0 {
runtime1.go#L445: debug.asyncpreemptoff = 1
runtime1.go#L566: if debug.cgocheck > 1 {
set_vma_name_linux.go#L23: if debug.decoratemappings == 0 || !setVMANameSupported() {
signal_unix.go#L448: if sig == sigPreempt && preemptMSupported && debug.asyncpreemptoff == 0 {
signal_unix.go#L691: if sig == sigPreempt && debug.asyncpreemptoff == 0 && !delayedSignal {
signal_unix.go#L1399: if sig == sigPreempt && preemptMSupported && debug.asyncpreemptoff == 0 {
stack.go#L359: if debug.efence != 0 || stackFromSystem != 0 {
stack.go#L477: if debug.efence != 0 || stackFromSystem != 0 {
stack.go#L478: if debug.efence != 0 || stackFaultOnFree != 0 {
stack.go#L676: if f.valid() && 0 < p && p < minLegalPointer && debug.invalidptr != 0 {
stack.go#L1309: if debug.gcshrinkstackoff > 0 {
stack.go#L1422: if debug.adaptivestackstart == 0 {
trace.go#L398: if debug.traceallocfree.Load() != 0 {
trace.go#L400: trace.debugMalloc = debug.malloc
trace.go#L402: debug.malloc = true
trace.go#L781: debug.malloc = trace.debugMalloc
trace.go#L1105: s.timer.sleep(int64(debug.traceadvanceperiod))
traceback.go#L1334: if gp.labels != nil && debug.tracebacklabels.Load() == 1 {
tracestack.go#L43: if debug.traceCheckStackOwnership != 0 && gp != nil {
tracestack.go#L260: return debug.tracefpunwindoff != 0 || (goarch.ArchFamily != goarch.AMD64 && goarch.ArchFamily != goarch.ARM64)